package com.baishui.gateway.context;

import com.baishui.gateway.constant.Constants;
import io.vertx.ext.web.RoutingContext;

public abstract class GateWayRouteContextHelper {

    public static GateWayRouteContext getContext(RoutingContext routingContext) {
        return routingContext.get(Constants.GATEWAY_KEY);
    }

    public static void setContext(RoutingContext routingContext, GateWayRouteContext context) {
        routingContext.put(Constants.GATEWAY_KEY, context);
    }

}
